package com.demo.highSpeedMap.controller;

import com.demo.highSpeedMap.entity.MinStep;
import com.demo.highSpeedMap.entity.StandardDoorSerial;
import com.demo.highSpeedMap.service.StandardDoorSerialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(path = {"/standardDoorSerial"})
public class StandardDoorSerialController {
    @Autowired
    StandardDoorSerialService standardDoorSerialService;
    @RequestMapping(path={"/queryStandardDoorSerial"})
    List<StandardDoorSerial> queryStandardDoorSerial(){
        return   standardDoorSerialService.queryStandardDoorSerial();
    }
    @RequestMapping(path={"/getStrStep"})
    public String[] getMinStep(@RequestParam String  start,@RequestParam String end){
        return   standardDoorSerialService.getStrStep(start,end);
    }
}
